<?php

@session_start();

$_SESSION['captcha'] = Str::genRandom(5, '', 'qwertyuiopasdf12345ghjklzxcvbnm67890');

for ($counter = 0; $counter < 5; ++$counter) {
    echo '<img id="captcha_', $counter, '" src="captcha/show.php?pos=', $counter, '" />';
}

?><!--
<img alt="Refresh" src="captcha/refresh.png"
     onclick="for (counter = 0; counter < 5; counter++) {document.getElementById('captcha_' + counter).src='captcha/show.php?pos=' + counter + '&reload=1&nc=' + (new Date()*1);}" style="cursor:pointer" />-->